package com.cci.kangdao.dto.request;


import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * @author linjiankun
 * @date 2022/12/23 16:07
 */
@Getter
@Setter
public class SaveRepairAckRequest {


    private Long wfOrderId = -1L;
    private Long drOrderId = -1L;
    private String smn;
    private String drOrderNo;
    private Double totalTime;
    private List<FaultInfoListRequest> faultInfoList;



    @Getter
    @Setter
    public static class FaultInfoListRequest  {

        private Long faultInfoId = -1L;
        private String faultInfoName;
        private Integer faultInfoType = -1;
        private List<SolutionListRequest> solutionList;


        @Getter
        @Setter
        public static class SolutionListRequest  {

            private Long solutionId = -1L;
            private String solutionCode;
            private String solutionTitle;
            private Integer fulfilStatus = -1;
            private String inspectionProcess;
            private Integer isCheckRepairAck = -1;
            private List<photoListRequest> photoList;
            private List<ComponentListRequest> componentList;




            @Getter
            @Setter
            public static class photoListRequest  {

                private String photoUrl;
                private String type;
                private Integer status = -1;
            }

            @Getter
            @Setter
            public static class ComponentListRequest  {

                private String componentId;
                private String componentName;
                private Integer componentCount = -1;
                private String wfc;
                private String failCode;
                private String failName;
                private List<srtListRequest> srtList;

                @Getter
                @Setter
                public static class srtListRequest  {

                    private Integer claimNumber;
                    private String srtCode;
                    private String srtType;
                    private String srtLevel;
                    private Double srtA;
                    private Double srtB;
                    private Double srtC;
                    private Double srtD;
                    private Double srtR;
                }
            }
        }
    }
}
